package com.usermanage.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("session")
public class SessionController {

    @RequestMapping("/invalid")
    @ResponseBody
    public ModelAndView reLogin(){
        ModelAndView mv = new ModelAndView();
        mv.setViewName("redirect:/");
    return mv;
    }
}
